home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
install
/
mkpkg-1.000
/
mkpkg-1
/
mkpkg
/
pkginstall
< prev
next >
Wrap
Text File
|
1994-05-29
|
548b
|
34 lines
#!/bin/sh
#
# mkpkg
# version 1.0
#
# Author : A. Davison
# Copyright (C) 1994, Esonque Systems
#
#
# This file may be distributed freely AS LONG AS this copyright message
# remains in the distributed/derivative file.
#
prog=$1;
cmdline=$*;
shift;
for a in $* ; do
b=$c
c=$a
echo >> /dev/null
done
# If the destination is a directory, make sure that the filename goes into the
# package description line too.
if [ -d $a ]; then
a=$a/`basename $b`
fi
echo $a | sed 's/^.//' >> /tmp/pkg.$PACKAGE_NAME
$prog $*